package com.ruoyi.shopping_products.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品详细信息对象 pd_detail
 * 
 * @author ruoyi
 * @date 2023-10-24
 */
public class PdDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long id;

    /** 启用状态(1:启用) */
    @Excel(name = "启用状态(1:启用)")
    private String isEnabled;

    /** 商品id */
    @Excel(name = "商品id")
    private String pdId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String pdName;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal pdPrice;

    /** 商品所属分类id */
    @Excel(name = "商品所属分类id")
    private String pdCategoryId;

    /** 是否加入购物车（0：未加入） */
    @Excel(name = "是否加入购物车", readConverterExp = "0=：未加入")
    private Integer isCartAdded;

    /** 是否推荐（0：非推荐商品） */
    @Excel(name = "是否推荐", readConverterExp = "0=：非推荐商品")
    private String isRecommanded;

    /** 是否热销（0：非热销商品） */
    @Excel(name = "是否热销", readConverterExp = "0=：非热销商品")
    private String isSellable;

    /** 是否已支付（0：未支付） */
    @Excel(name = "是否已支付", readConverterExp = "0=：未支付")
    private String isPaid;

    /** 商品详情页内容 */
    @Excel(name = "商品详情页内容")
    private String pdContent;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIsEnabled(String isEnabled) 
    {
        this.isEnabled = isEnabled;
    }

    public String getIsEnabled() 
    {
        return isEnabled;
    }
    public void setPdId(String pdId) 
    {
        this.pdId = pdId;
    }

    public String getPdId() 
    {
        return pdId;
    }
    public void setPdName(String pdName) 
    {
        this.pdName = pdName;
    }

    public String getPdName() 
    {
        return pdName;
    }
    public void setPdPrice(BigDecimal pdPrice) 
    {
        this.pdPrice = pdPrice;
    }

    public BigDecimal getPdPrice() 
    {
        return pdPrice;
    }
    public void setPdCategoryId(String pdCategoryId) 
    {
        this.pdCategoryId = pdCategoryId;
    }

    public String getPdCategoryId() 
    {
        return pdCategoryId;
    }
    public void setIsCartAdded(Integer isCartAdded) 
    {
        this.isCartAdded = isCartAdded;
    }

    public Integer getIsCartAdded() 
    {
        return isCartAdded;
    }
    public void setIsRecommanded(String isRecommanded) 
    {
        this.isRecommanded = isRecommanded;
    }

    public String getIsRecommanded() 
    {
        return isRecommanded;
    }
    public void setIsSellable(String isSellable) 
    {
        this.isSellable = isSellable;
    }

    public String getIsSellable() 
    {
        return isSellable;
    }
    public void setIsPaid(String isPaid) 
    {
        this.isPaid = isPaid;
    }

    public String getIsPaid() 
    {
        return isPaid;
    }
    public void setPdContent(String pdContent) 
    {
        this.pdContent = pdContent;
    }

    public String getPdContent() 
    {
        return pdContent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("isEnabled", getIsEnabled())
            .append("pdId", getPdId())
            .append("pdName", getPdName())
            .append("pdPrice", getPdPrice())
            .append("pdCategoryId", getPdCategoryId())
            .append("isCartAdded", getIsCartAdded())
            .append("isRecommanded", getIsRecommanded())
            .append("isSellable", getIsSellable())
            .append("isPaid", getIsPaid())
            .append("pdContent", getPdContent())
            .append("remark", getRemark())
            .toString();
    }
}
